home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-02-21 | 905 b | 62 lines |
- #
- # GNU makefile
- #
- CC = gcc
- INCL =
- CFLAGS = -O -I../include
- LINK = gcc
- STRIP = strip
- BIND = coff2exe
- RM = del
- LFLAGS = -L../lib
- LIBS = -lcurso -lpano
- PROGS = firework.exe newdemo.exe testcurs.exe tuidemo.exe xmas.exe ptest.exe
-
- all: $(PROGS)
-
- %.exe : %
- $(STRIP) $<
- $(BIND) $<
-
- % : %.o
- $(LINK) $(LFLAGS) -o $@ $< $(LIBS)
-
- firework.exe : firework
-
- firework : firework.o
-
- newdemo.exe : newdemo
-
- newdemo : newdemo.o
-
- testcurs.exe : testcurs
-
- testcurs : testcurs.o
-
- tuidemo.exe : tuidemo
-
- tuidemo : tuidemo.o tui.o
- $(CC) $(LFLAGS) -o $@ tuidemo.o tui.o $(LIBS)
-
- tuidemo.o : tuidemo.c tui.h
-
- tui.o : tui.c tui.h
-
- ptest.exe : ptest
-
- ptest : ptest.o
-
- xmas.exe : xmas
-
- xmas : xmas.o
-
- clean:
- -$(RM) firework
- -$(RM) newdemo
- -$(RM) ptest
- -$(RM) testcurs
- -$(RM) tuidemo
- -$(RM) xmas
- -$(RM) *.o
- -$(RM) *.exe
-